package com.hurr.service.impl;

import java.util.Collection;

import com.hurr.bo.Deposit;
import com.hurr.dao.DepositDao;
import com.hurr.service.DepositService;

/**
 * Implemetation for Deposit Service
 * 
 * @author Fernando Perelli
 * 
 */
public class DepositServiceImpl implements DepositService {

	/**
	 * Dao for deposit
	 */
	private DepositDao depositDao;

	/**
	 * Set DepositDao
	 * 
	 * @param depositDao
	 */
	public void setDepositDao(DepositDao depositDao) {
		this.depositDao = depositDao;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.hurr.service.DepositService#save(com.hurr.bo.Deposit)
	 */
	@Override
	public Deposit save(Deposit deposit) {
		return depositDao.save(deposit);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.hurr.service.DepositService#update(com.hurr.bo.Deposit)
	 */
	@Override
	public void update(Deposit deposit) {
		depositDao.update(deposit);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.hurr.service.DepositService#delete(com.hurr.bo.Deposit)
	 */
	@Override
	public void delete(Deposit Deposit) {
		depositDao.delete(Deposit);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.hurr.service.DepositService#findById(java.lang.Long)
	 */
	@Override
	public Deposit findById(Long id) {
		return depositDao.findById(id);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.hurr.service.DepositService#findAll()
	 */
	@Override
	public Collection<Deposit> findAll() {
		return depositDao.findAll();
	}

}
